package com.bkgy.controller.technology.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bkgy.commom.model.QueryDTO;
import com.bkgy.controller.technology.entity.TTech;
import com.bkgy.controller.technology.entity.dto.*;
import com.bkgy.sys.common.entity.ResultData;

import javax.servlet.http.HttpServletResponse;

public interface ITechService extends IService<TTech> {
    public ResultData<String> saveTech(TTech tech);

    public ResultData<String> updateTech(TTech tech);

    public ResultData<Page<TTech>> pageTech(QueryDTO<TechQueryDto> queryDTO);

    public ResultData<String> deleteTech(Integer indocno);

    public void exportXlsx(TechQueryDto techReq, HttpServletResponse res);

    ResultData<Tech6CharRes> selectTechFit(TechChartDtoReq tc);

    ResultData<TechListDtoRes> selectTechList(TechChartDtoReq tc);

    ResultData<JSONObject> techCrewProfit();

    ResultData<TechExecDtoRes> techExecList();

    ResultData<TechCrewProfitDtoRes> techCrewProfitList();

    ResultData<TechBrandProfitDtoRes> techBrandProfitList();

    /**
     * 加载产线的最新20条卷号
     */
    ResultData<String> loadRoll(String lineCode);
}
